package Hongbao;

import java.util.ArrayList;
import java.util.Random;

public class Member extends User {
    public Member(String name, int money) {
        super(name, money);
    }

    public Member() {
    }
    public void receive(ArrayList<Integer> red){
        int idex=new Random().nextInt(red.size());
        int m = red.remove(idex);
        int n=super.getMoney();
        super.setMoney((m+n));

    }
}
